package com.aaa.service;


import com.aaa.entity.Role;
import com.aaa.vo.Result;
import com.aaa.vo.RoleVo;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.Map;

public interface RoleService {
    Result<Map<String,Object>> queryRoleByUserId(Long userId);

    Result<String> confirmRole(Long userId, Long[] roleIds);

    Result<IPage<Role>> getByPage(Integer currentPage, Integer pageSize, RoleVo roleVo);

    Result<Role> getById(Long id);

    Result<String> addOrUpd(Role role);

    Result<String> deleteByIds(Long[] id);
}
